package com.nineclock.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nineclock.system.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author 淮晓欢
 * @Company http://www.huaixiaohuan.com
 * @Version 1.0
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Select("select count(0) from sys_user where email = #{param1} or mobile = #{param2}")
    int checkEmailAndMobileCount(String email, String mobile);
}
